package com.weiadmin.controller;

import org.springframework.beans.factory.InitializingBean;

/**
 * 功能描述
 *
 * @author: shizhongyu
 * @date: 2023年04月13日 17:14
 */
public class OssClientConfig implements InitializingBean {
    //    @Value("${aliyun.oss.endpoint}")
    String endpoint;
    //    @Value("${aliyun.oss.accessKeyId}")
    String accessKeyId;
    //    @Value("${aliyun.oss.accessKeySecret}")
    String accessKeySecret;
    //    @Value("${aliyun.oss.bucketName}")
    private String bucketName;

    //定义公开静态常量
    public static String END_POIND;
    public static String ACCESS_KEY_ID;
    public static String ACCESS_KEY_SECRET;
    public static String BUCKET_NAME;

    @Override
    public void afterPropertiesSet() {
        END_POIND = "chemooss.oss-cn-hangzhou.aliyuncs.com";
        ACCESS_KEY_ID = "LTAI5tHMVrx4xv3g17LNdwqg";
        ACCESS_KEY_SECRET = "S51u5MyrcgmgSrBycdkuiE0Z2zwjYG";
        BUCKET_NAME = "chemooss";

    }

}
